package org.linlinjava.litemall.wx.web;

import org.linlinjava.litemall.wx.service.WxMemberRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/wx/memberRule")
public class WxMemberRuleController {
    @Autowired
    private WxMemberRuleService memberRuleService;

    /**
     * 查询租书规则列表
     * @return
     */
    @GetMapping("/list")
    public Object listRules() {
        return memberRuleService.listMemberRules();
    }

}
